package io;

import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        //文件输出流
        FileInputStream fis=new FileInputStream("pw.txt");
        //转换流 读
        InputStreamReader isr=new InputStreamReader(fis, StandardCharsets.UTF_8);
        //字节缓冲流
        BufferedReader br=new BufferedReader(isr);
        /*
        String readline();
        读取一行字符串，返回
         */
        String len;
           //   读取长度不等于空
        while ((len=br.readLine())!=null){
            System.out.println(len);
        }
br.close();

    }
}
